#ifndef __LOG_H__
#define __LOG_H__



#define LOG_INFO 1
#define LOG_WARNING 2
#define LOG_ERROR 3
#define LOG_FAULT 4

#define MAX_LOG_FILE_LEN 256
#define MAX_LOG_LEN 4096

typedef struct StruLogTypeInfo
{
	int liLogType;
	char *pstrLogInfo;
}LogTypeInfo,*pLogTypeInfo;


extern int SetProgrameName(char *ppstrProName);
extern int WriteLog(int liType,char *ppstrLog, ...);

#endif
